/* ✅ Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  overflow-x: hidden;
  background: #f4f4f4;
  min-height: 100vh;
}

/* ✅ Navbar */
.navbar {
  width: 100%;
  background: #0d1b2a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  height: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  position: relative;
  transition: 0.3s;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #ffcc00;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ✅ Right icons */
.right-icons a {
  color: #fff;
  font-size: 22px;
  margin-left: 15px;
  transition: 0.3s;
}

.right-icons a:hover {
  color: #ffcc00;
}

/* ✅ Dropdown */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0c0b0b;
  min-width: 200px;
  border-radius: 6px;
  z-index: 1000;
  flex-direction: column;
}
.dropdown-menu a {
  padding: 10px 15px;
  color: #eee;
  text-decoration: none;
  display: block;
}
.dropdown-menu a:hover {
  background: #201d1d;
}
@media (min-width: 768px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ✅ Mobile Navbar */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: #0d1b2a;
    flex-direction: column;
    width: 100%;
    padding: 15px 0;
    z-index: 10000;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
    font-size: 22px;
    cursor: pointer;
    margin-right: auto;
    order: -1;
  }
  .right-icons {
    margin-left: auto;
  }
}
@media (min-width: 993px) {
  .menu-toggle {
    display: none;
  }
}

/* ✅ Content spacing */
.content {
  margin-top: 80px;
  padding: 40px;
  text-align: center;
}

/*---------------------------------------- News Section ----------------------------------------*/
.news-section {
  max-width: 1300px;
  margin: 100px auto 50px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.title-area {
  text-align: center;
  flex-grow: 1;
}

.title-area h2 {
  font-size: 28px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.title-area p {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.nav-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  margin: 5px;
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: #0056b3;
}

.news-index-link {
  margin-left: 10px;
  text-decoration: none;
  color: #6454d7;
  font-weight: bold;
  border-bottom: 2px solid #4a80be;
  font-family: Georgia, 'Times New Roman', Times, serif;
  padding-bottom: 2px;
}

/*---------------------------------------- Gallery ----------------------------------------*/
.gallery {
  display: grid;
  gap: 20px;
  justify-items: center;
  width: 100%;
  padding: 0 10px;
}

/* Gallery Images Responsive */
.gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid black;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Thumbnails */
.thumb-img {
  width: 200px;
  margin: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumb-img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/*---------------------------------------- Footer ----------------------------------------*/
.footer-section {
  width: 100%;
  background: #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  font-family: "Roboto", "Open Sans", sans-serif;
  font-size: 16px;
  color: #333;
  margin-top: 30px;
}

.footer-section a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

/*---------------------------------------- Responsive ----------------------------------------*/
/* Mobile */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .footer-section {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 15px;
  }
}

/* iPad Portrait / Small tablets */
@media (min-width: 601px) and (max-width: 767px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* iPad Landscape / Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery {
    grid-template-columns: 1fr 1fr; /* 2 columns */
  }
}

/* iPad Pro / Large Tablets / Small Desktop */
@media (min-width: 1025px) and (max-width: 1366px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*---------------------------------------- Optional: max-width for images to avoid overflow --------------------------------*/
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
